home *** CD-ROM | disk | FTP | other *** search
- Path: utpapa.ph.utexas.edu!tian
- From: tian@utpapa.ph.utexas.edu (Shiyang Tian)
- Newsgroups: comp.lang.c++
- Subject: [help] can't open the file
- Date: 8 Mar 1996 02:51:05 GMT
- Organization: Physics Department, University of Texas at Austin
- Message-ID: <4ho7ap$ddd@geraldo.cc.utexas.edu>
- NNTP-Posting-Host: utpapa.ph.utexas.edu
-
- Hi,
-
- I am using gcc version 2.6.3. I got a problem when I ran a C++ program. The
- following error message was dumped by gdb (v4.14):
-
- Program received signal SIGSEGV, Segmentation fault.
- 0x1002e714 in fstreambase::open (this=0x200549b8,
- name=0x2ff7f8f4 "status.out", mode=2, prot=436) at ./streambuf.h:207
- ./streambuf.h:207: No such file or directory.
-
- I have defined output stream somewhere in a master file main.C
- #include <fstream.h>
- ofstream status;
-
- and open the file in another file another.C
- #include <fstream.h>
- extern status;
- status.open("status.out", ios::out);
-
- What's the possible reasons for this error? I can't reproduce this error
- with a small program.
-
- Thank you very much for your help.
-
-
- -- Tian
-